package com.qf.business.message.application;

import org.kurento.client.KurentoClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * author Ken
 * create_time 2023/1/6
 */
@SpringBootApplication
public class MessageApplication {

    public static void main(String[] args) {
        SpringApplication.run(MessageApplication.class, args);
    }

    @Value("${kms.url}")
    private String kmsUrl;

    @Bean
    public KurentoClient getKurentoClient(){
        return KurentoClient.create(kmsUrl);
    }
}
